import {tableOptBtnConfig} from "../table";

export default {
  "tableId": "thirdPartyPlatform",
  "name": "第三方平台",
  "columns": [
    {
      label: '平台名称',
      children: [
        {
          key: 'name',
        },
      ],
    },
    {
      label: '基础属性映射',
      children: [
        {
          key: 'basePropMap',
        },
      ],
    },
    {
      label: '备注',
      children: [
        {
          key: 'remarks',
        }
      ],
    },
    {
      label: '更新时间',
      width: 100,
      children: [
        {
          updatedDate: true
        }
      ],
    },
    {
      "label": "操作",
      "operation": true,
      "width": 185,
      "children": [
        {
          "button": true,
          type: tableOptBtnConfig.edit.type,
        },
        {
          "button": true,
          type: tableOptBtnConfig.delete.type,
          class: 'hover-danger',
        },
        {
          'dropdown': true,
          'options': [
            {
              type: 'mapRuleConfig',
              label: '映射规则配置',
            },
            {
              type: tableOptBtnConfig.export.type,
              label: '导出配置至分控',
            },
          ]
        }
      ]
    }
  ],
  "filters": [
    {
      "fieldType": "string",
      key: 'deviceType',
      label: '设备类别',
      "dataApi": API.deviceType.deviceTypeAll,
      "options": []
    },
    {
      "fieldType": "input",
      key: 'name',
      label: '属性名',
    },
    {
      "fieldType": "input",
      key: 'remarks',
      label: '备注',
    },
  ]
}
